The VectorScript debugger is activated by using the {$DEBUG} compiler directive. This compiler directive, which can be placed anywhere within a script, instructs the compiler to activate and display the debugger window when the script is executed. For example,
The VectorScript debugger allows a script to be executed in a line-by-line fashion, also known as "stepping" through the source code. The debugger performs this task beginning at the first line of the script and continuing through each line until the end of the script is reached.
When the debugger is launched, storage for variables and constants is defined and script execution is paused at the first line of code in the script body. The debugger window is then displayed, providing a wide array of information on the script and the current state of execution.